package serviceset4.feign;

import feign.RequestLine;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.Map;

@FeignClient(name = "SERVICE-SET-3", fallback = ServiceSet3Hystrix.class)
public interface ServiceSet3 {
    @RequestLine("GET /sampleApi3?dependency={dependency}")//work for testing
    @RequestMapping(method = RequestMethod.GET, value = "/sampleApi3?dependency={dependency}")
    Map sampleApi3(@PathVariable("dependency") String dependency);
}
